package project.DAO;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import project.DO.volunteerDo;

import java.util.List;

@Mapper
@Service
public interface volunteerDAO{
    @Select("select * from volunteer")
    public List<volunteerDo> selectAll();
    @Insert("insert into volunteer(photo,name,telephone,sno,affair,area) values (#{photo},#{name},#{telephone},#{sno},#{affair},#{area})")
    public void insertAll(String photo,String name,String telephone,String sno,String affair,String area);
}
